package com.cy.pj.goods.dao;

import com.cy.pj.goods.pojo.Goods;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository

public interface GoodsDao {
    List<Goods> findGoods();

    @Delete("delete from tb_goods where id=#{id}")
    int deleteById(Integer id);

    @Delete("delete from tb_goods where id in (${id})")
    int deleteByHenDuoId(String id);


}

